package com.anrongtec.zcpt.openapi.model;

import com.google.gson.annotations.Expose;

import java.io.Serializable;

/**
 * 解析服务器json对象
 * @author cxy
 *
 */
public class JsonDataResult<T> implements Serializable {
	/**返回码*/
	@Expose
	private String retCode = "";
	/**返回信息*/
	@Expose
	private String retMsg = "";
	/**具体业务数据*/
	@Expose
	private T data;
	
	public String getRetCode() {
		return retCode;
	}
	public void setRetCode(String retCode) {
		this.retCode = retCode;
	}
	public String getRetMsg() {
		return retMsg;
	}
	public void setRetMsg(String retMsg) {
		this.retMsg = retMsg;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	@Override
	public String toString() {
		return "JsonDataResult [retCode=" + retCode + ", retMsg=" + retMsg + ", data=" + data + "]";
	}
	
	/**
	 * 解析User
	 * @param json
	 * @return
	 */
}
